import java.lang.reflect.Array;
import java.util.ArrayList;

public class damo8 {
    public static void main(String[] args) {
        ArrayList<Student> list = new ArrayList<>();
        Student s1 = new Student("陈云龙", 23);
        Student s2 = new Student("智慧眼", 16);
        Student s3 = new Student("狗眼", 19);
        list.add(s1);
        list.add(s2);
        list.add(s3);
        for (int i = 0; i < list.size(); i++) {
            Student student = list.get(i);
            System.out.println(student.getAge()+","+student.getName());


        }


    }
}
